#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

class myTransform {
	public:
		int operator()(int val) {
			return val;
		}
};

class myPrint {
	public:
		void operator()(int val) {
			cout << val << " ";
		}
};

void test01() {
	vector<int> v;
	for (int i = 0; i < 10; i++) {
		v.push_back(i);
	}

	vector<int> v1;
	v1.resize(v.size());

	transform(v.begin(), v.end(), v1.begin(), myTransform());

	for_each(v1.begin(), v1.end(), myPrint());
}

int main() {
	test01();

	return 0;
}